#include <stdio.h>
void separarfloat (float, int*, float*);
int main (void)
{
	float nro, parteDec;
	int parteEnt;
		printf ("Ingrese un numero real: ");
		scanf ("%f", &nro);
			separarfloat (nro, &parteEnt, &parteDec);
			printf ("la parte entera es: %d\nLa parte decimal es: %f\n", parteEnt, parteDec);
	return 0;
}
void separarfloat (float nro, int *ent, float *dec)
{
	*ent = (int) nro;
	*dec= nro - *ent;
}
